package com.cloud.model;

/**
 * @author sunzt
 * @since 2020-07-11 14:18
 */

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;


@TableName("db_user_account")
@Data
public class AppUser extends Model<AppUser> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private String id;

    private String username;

    private String password;

    @TableField(exist = false)
    private String rePassword;

    private String nickname;

    @TableField("head_img_url")
    private String headImgUrl;

    private String phone;

    private Integer sex;

    /**
     * 状态
     */
    private Boolean enabled;
    private String type;
    @TableField("create_time")
    private Long createTime;
    @TableField("update_time")
    private Long updateTime;

    @TableField(exist = false)
    private String role;

    @TableField("organization_id")
    private Integer organizationId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}